/*
 * @Description: Person
 * @Author: rendc
 * @Date: 2024-09-13 09:16:06
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-13 09:19:12
 */
// 定义person类 作为父类
public class Person{
  // 成员属性 name
  private String name;
  // set
  public void setName(String name){
    this.name = name;
  }
  // sayHello
  public void sayHello(){
    System.out.println("Hello,my name is " + name);
  }
}